package com.lagou.dao;

import com.lagou.pojo.User;
import org.dom4j.DocumentException;

import java.beans.PropertyVetoException;
import java.util.List;

/**
 * @Author: Tao Zheng
 * @classNmae: IUserDao
 * @packageName: com.lagou.dao
 * @description:
 * @DATE: 2021/5/31 17:39
 */
public interface IUserDao {
    //查询所有用户
    public List<User> findAll() throws Exception;

    //根据条件进行用户查询
    public User findByCondition(User user) throws Exception;

    //新增用户
    public Integer createUser(User user) throws Exception;

    //更新用户名
    public Integer updateUser(User user) throws Exception;

    //删除用户
    public Integer deleteUser(User user) throws Exception;
}
